<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
    <title>稻道工场 社区粮店</title>
    <link rel="stylesheet" href="/thinkphp/Public/home/css/reset.css" />
    <link rel="stylesheet" href="/thinkphp/Public/home/css/store.css" />
    <script type="text/javascript" src="/thinkphp/Public/home/js/zepto.min.js" ></script>
    <script src="/thinkphp/Public/home/js/swiper.min.js"></script>
</head>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
		<title>我的订单</title>
		<link rel="stylesheet" href="/thinkphp/Public/home/css/reset.css" />
		<link rel="stylesheet" href="/thinkphp/Public/home/css/store.css" />
	</head>
	<body>
		<div class="layout">
			<!--header-->
			<div class="wrapper">
				<div class="header">
					<a class="s_preson" href="<?php echo U('Users/index');?>" target="_blank"> < </a>
					<div class="store">
						订单管理
					</div>
					<div class="s_index">
						<i class="s_icon s_indexBtn"></i>
					</div>
				</div>
			</div>
			
			<div class="orders">
				<ul class="orders_box">
                    <?php if(is_array($myOrder)): $i = 0; $__LIST__ = $myOrder;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$or): $mod = ($i % 2 );++$i;?><li>
                            <div class="orders_list">
                                <div class="orders_info">
                                    <p><span>订单编号：</span><em class="orderColor"><?php echo ($or["order_sn"]); ?></em></p>
                                    <p><span>订单金额：</span>$<em><?php echo ($or["goods_amount"]); ?></em></p>
                                    <p><span>订单时间：</span><em><?php echo ($or["timee"]); ?>0</em></p>
                                    <p><span>订单状态：</span><em><?php echo ($or["order_status_b"]); ?>，<?php echo ($or["pay_status_b"]); ?></em></p>
                                </div>
                                <div class="orders_btn">
                                    <p>
                                        <a href="<?php echo U('Users/myOrderInfo',array(id=>$or[id]));?>">详情</a>
                                        <?php if(($or['pay_status'] == 0)): ?>| <a href="<?php echo U('Users/delOrder',array(id=>$or[id]));?>">取消</a><?php endif; ?>
                                    </p>
                                </div>
                            </div>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>
			<div class="footer">
				<p>©2015 北京食安城信息科技有限公司，并保留所有权利</p>
			</div>
		</div>
	</body>
</html>


<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

</body>
</html>